package cn.edu.scujcc;

import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class hellocontroller {

		@GetMapping("/hello")
		public Map<String, Object> sayHello(){
			Map<String,Object> result = new HashMap<>();
			result.put("message","hello,world!");
			return result;
		}
		
		public Map<String, Object> sayGoodbye(){
			Map<String, Object>result = new HashMap<>();
			result.put("massage","Goodbye!");
			return result;
		}
}
/*@RestController
@RequestMapping("/test")
public class hellocontroller {
	
	@Autowired
	private ChannelService service;
}
*/